//
//  CustomCollectionReusableView.m
//  Homework_14
//
//  Created by 徐昊 on 16/8/2.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "CustomCollectionReusableView.h"

@interface CustomCollectionReusableView ()

@end

@implementation CustomCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, CGRectGetHeight(self.bounds))];
        _button = [UIButton buttonWithType:UIButtonTypeSystem];
        _button.frame = CGRectMake(CGRectGetWidth(self.bounds) - 80, 0, 80, CGRectGetHeight(self.bounds));
        [self addSubview:_label];
        [self addSubview:_button];
    }
    return self;
}
@end
